package com.taotao.web.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * 专门管理外部资源文件(.properties)的服务类
 * @author Henry
 *
 */
@Service
public class PropertiesService {
	
	public static final ObjectMapper MAPPER = new ObjectMapper();
	//后台系统地址 http://manage.taotao.com
	@Value("${TT_MANAGE_URL}")
	public   String TT_MANAGE_URL;
	//查询大广告的接口地址    /rest/content?categoryId=96&page=1&rows=20
	@Value("${TT_MANAGE_AD1_URL}")
	public  String TT_MANAGE_AD1_URL;
	//查询小广告的接口地址  /rest/content?categoryId=41&page=1&rows=1
	@Value("${TT_MANAGE_AD2_URL}")
	public String TT_MANAGE_AD2_URL;
}
